﻿// Copyright (c) Inossem. All rights reserved.
// Licensed under the LGPL-3.0 license. See LICENSE file in the project root for full license information.
using NLog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NamedPipeWrapper.Common
{
    internal static class LogHelper
    {
        private static readonly Logger _log = null;

        static LogHelper()
        {
            _log = LogManager.GetCurrentClassLogger();
        }

        public static void Error(Exception ex)
        {
            _log.Error(ex);
        }

        public static void Error(object obj)
        {
            _log.Error(obj);
        }

        public static void Debug(string msg)
        {
            _log.Debug(msg);
        }

        public static void Info(string msg)
        {
            _log.Info(msg);
        }

        public static void Warn(string msg)
        {
            _log.Warn(msg);
        }

        public static void Warn(Exception ex)
        {
            _log.Warn(ex);
        }
    }
}
